package com.william.jdbcplus.core.util.datameta;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Getter;
import lombok.Setter;

import java.util.LinkedList;
import java.util.List;

@Getter
@Setter
@Builder
@ApiModel("数据库信息")
public class DatabaseMetaInfo {
    @ApiModelProperty(value = "表信息列表")
    private List<TableMetaInfo> tableInfoList = new LinkedList<>();

    @ApiModelProperty(value = "用户名")
    private String userName;

    @ApiModelProperty(value = "系统函数的逗号分隔列表")
    private String systemFunctions;

    @ApiModelProperty(value = "时间和日期函数的逗号分隔列表")
    private String timeDateFunctions;

    @ApiModelProperty(value = "字符串函数的逗号分隔列表")
    private String stringFunctions;

    @ApiModelProperty(value = "供应商用于 'schema' 的首选术语")
    private String schemaTerm;

    @ApiModelProperty(value = "数据库URL")
    private String URL;

    @ApiModelProperty(value = "是否允许只读")
    private Boolean readOnly;

    @ApiModelProperty(value = "数据库的产品名称")
    private String databaseProductName;

    @ApiModelProperty(value = "数据库的版本")
    private String databaseProductVersion;

    @ApiModelProperty(value = "驱动程序的名称")
    private String driverName;

    @ApiModelProperty(value = "驱动程序的版本")
    private String driverVersion;
}
